import request from "@/utils/request";
import { stringify } from "qs";
import { toFormData } from "@/utils/utils.jsx";
import func from "@/utils/func";

//商品自动生成设置，详情:
export async function getOrderRulesOp() {
	return request(`/new-goods/goods/goodsFieldsFilterRulesConfig/goodsRulesDetails`);
}

//过滤符号及之后内容，下拉列表
export async function symbolAndAfterContent() {
	return request(`/new-goods/goods/goodsFieldsFilterRulesConfig/symbolAndAfterContent`);
}

//过滤符号及中间内容，下拉列表
export async function symbolAndMiddleContent() {
	return request(`/new-goods/goods/goodsFieldsFilterRulesConfig/symbolAndMiddleContent`);
}

//开关状态切换
export async function changeRuleStatus(params) {
	return request(`/new-goods/goods/goodsFieldsFilterRulesConfig/changeRuleStatus`, {
		method: "POST",
		data: params
	});
}

//保存
export async function saveRuleConfigs(params) {
	return request(`/new-goods/goods/goodsFieldsFilterRulesConfig/saveRuleConfigs`, {
		method: "POST",
		data: params
	});
}

//编辑过滤规则内容
export async function changeRuleSetting(params) {
	return request(`/new-goods/goods/goodsFieldsFilterRulesConfig/changeRuleSetting`, {
		method: "POST",
		data: params
	});
}
